package cn.kent.bridgePattern;

/**
 * @author kent
 * @date 2021/6/4 9:30
 */
public class Client {
    public static void main(String[] args) {
        House house = new House();
        System.out.println("===房地产公司是这样运营的。===");
        // 先找到我的公司
        HouseCorp houseCorp = new HouseCorp(house);
        // 看我怎么赚钱
        houseCorp.makeMoney();
        System.out.println("\n");

        System.out.println("山寨公司开始");
//        ShanzhaiCorp shanzhaiCorp = new ShanzhaiCorp(new Clothes());
        // 山寨公司生产ipod
        ShanzhaiCorp shanzhaiCorp = new ShanzhaiCorp(new Ipod());
        shanzhaiCorp.makeMoney();
    }
}
